<% #endcoding:utf-8%>
<%=render partial: "questions/detail"%>
<div class="panel">
    <div class="panel-heading">
      <h3 class="demand-top">我的回答</h3>
    </div>
    <%=form_for @answer do |f|%>
    <div class="form-group">
      <%= f.kindeditor :content, :simple_mode => true %>
    </div>
      <%=f.hidden_field :question_id,value:@question.id%>
      <%=f.hidden_field :user_id,value:session[:user_id]%>
      <%=f.submit "提交",:class=>'btn btn-warning btn-block'%>
    <%end%>
</div>
